package com.woniu.service;

import com.woniu.entity.PageResult;
import com.woniu.pojo.Book;
import com.baomidou.mybatisplus.extension.service.IService;
import com.woniu.vo.BookQueryVo;

import java.math.BigDecimal;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author dong
 * @since 2022-10-13
 */
public interface IBookService extends IService<Book> {

    PageResult search(Integer currentPage, Integer pageSize, BookQueryVo bookQueryVo);

    boolean updateByStatus(String bookId, String status);

    void book(String memberId, String cardId, String timetableId, BigDecimal discount);
}
